package chen.yi.component.mysql.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 表创建错误枚举值
 * @author huat
 **/
@Getter
@AllArgsConstructor
public enum TableErrorEnums {
    TABLE_NAME(50001,"表名不合法，请重新输入表名"),
    FIELD_NAME(50002,"字段【%s】不合法"),
    FIELD_TYPE(50003,"字段类型【%s】不合法"),
    ENGINE_TYPE(50004,"引擎类型【%s】不合法"),
    COMMENT_CONTENT(50005,"备注【%s】不合法"),
    TABLE_COMMENT(50006,"表备注不允许为空"),
    FIELD_COMMENT(50007,"字段备注不允许为空"),
    LOADING_TEMPLATE(50008,"加载模板异常"),
    INDEX_TYPE(50009,"索引类型【%s】不合法"),
    INDEX_FUNCTION(50010,"索引方法【%s】不合法"),
    INDEX_COMMENT(50011,"索引备注不允许为空"),
    FOREIGN_NAME(50012,"外键【%s】不合法"),
    WHEN_NAME(50013,"外键修改时/删除时【%s】不合法"),
    TABLE_FIELD(50014,"字段不能为空"),
    ;
    private final int code;
    private final String message;
}
